package com.myGroup.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel("返回给前端的评论数据")
public class CommentVO {
    @ApiModelProperty("一级评论下的总回复数")
    private Integer replyTotalCount;

    @ApiModelProperty("一级评论下的回复列表")
    private List<CommentVO> children;

    @ApiModelProperty("用户昵称")
    private String nickName;

    // @ApiModelProperty("是否V认证")
    // private String isV;

    @ApiModelProperty("回复的是哪个用户(ta的昵称)")
    private String replyUserNickname;

//    @ApiModelProperty("对那条评论进行的回复（对一级评论作回复, 不记录该replyCommentId）")
//    private Integer replyCommentId;

    @ApiModelProperty("评论id")
    private Integer id;

    @ApiModelProperty("父级评论id(顶级评论为null)")
    private Integer parentId;

    @ApiModelProperty("回复用户id")
    private Integer replyUserId;

    @ApiModelProperty("评论人id")
    private Integer userId;

    @ApiModelProperty("评论内容")
    private String commentContent;

    @ApiModelProperty("评论时间")
    private LocalDateTime createTime;

    @ApiModelProperty("点赞数")
    private Integer likeNum;

    @ApiModelProperty("用户头像地址")
    private String avatarUrl;

}
